#ifndef MOBILEOBJECT_H
#define MOBILEOBJECT_H

#include "Geometry.h"

class MobileObject
{
protected:
    Vector position;
    Vector velocity;

public:

    Vector getPosition() { return position; }
    void setPosition(Vector pos) { position = pos; }

    Vector getVelocity() { return velocity; }
    void setVelocity(Vector vel) { velocity = vel; }

    double distanceTo(Vector v)
    {
        return position.Dist(v);
    }

    double distanceTo(MobileObject o)
    {
        return distanceTo(o.getPosition());
    }
};

#endif // MOBILEOBJECT_H
